package com.shop.shop.dao;

import com.shop.shop.domain.ShopUserOrder;

import java.util.List;


/**
 * 用户，订单关联Mapper接口
 * 
 * @author ruoyi
 */
public interface ShopUserOrderMapper 
{
    /**
     * 查询用户，订单关联
     * 
     * @param userId 用户，订单关联主键
     * @return 用户，订单关联
     */
    public ShopUserOrder selectShopUserOrderByUserId(Long userId);

    /**
     * 查询用户，订单关联列表
     * 
     * @param shopUserOrder 用户，订单关联
     * @return 用户，订单关联集合
     */
    public List<ShopUserOrder> selectShopUserOrderList(ShopUserOrder shopUserOrder);

    /**
     * 新增用户，订单关联
     * 
     * @param shopUserOrder 用户，订单关联
     * @return 结果
     */
    public int insertShopUserOrder(ShopUserOrder shopUserOrder);

    /**
     * 修改用户，订单关联
     * 
     * @param shopUserOrder 用户，订单关联
     * @return 结果
     */
    public int updateShopUserOrder(ShopUserOrder shopUserOrder);

    /**
     * 删除用户，订单关联
     * 
     * @param userId 用户，订单关联主键
     * @return 结果
     */
    public int deleteShopUserOrderByUserId(Long userId);

    /**
     * 批量删除用户，订单关联
     * 
     * @param userIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteShopUserOrderByUserIds(Long[] userIds);
}
